<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script src=""></script>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>证照培训</title>
    <%@include file="/WEB-INF/views/include/weixinhead.jsp" %>
</head>
<body>
<!--证照培训-->
<div data-role="page" id="entranceExamination" class="page" >
    <div data-role="header" class="header header-1">证照培训
        <span class="return-btn"><a href="/f/campusinfo/homepage" data-ajax="false" data-transition="slideup"><img src="${ctxStatic}/modules/wechat/css/images/yuanjiaojuxing25.png" alt=""></a></span>
    </div>
    <div role="main" class="content-1">
        <div class="msg-content"></div>
        <!--<div data-role="footer"></div>-->
    </div>
</div>
<script>
    $(document).ready(function(){
        $.ajax({
            url:interfaceCertificateTraining+generateMixed(9),
            type:'post',
            success:function(data){
                // console.log(data);
                for(var i=0;i<data.page.length;i++){
                    $(".msg-content").eq(0).append("<div class='msg-div' id="+data.page[i].id+"><div class='msg-content-left'> <div class='msg-div-title'>"+data.page[i].trainType+"&nbsp;&nbsp;("+data.page[i].trainName+")</div><div class='msg-div-text-special'>"+data.page[i].trainShort+"</div> </div> <img onerror=\"this.onerror='';src='${ctxStatic}/modules/wechat/css/images/sx-img.png'\"  src='${imgIp}"+data.page[i].trainImg+"'></div>")
                }
            }
        })

        $(document).delegate(".msg-div","tap",function () {
            var index=$(".msg-div").index(this);
            var id=$(".msg-div").eq(index).attr("id");
            if(window.sessionStorage){
                sessionStorage.setItem("examId",id);
                window.location.href="/f/campusinfo/ApplyForCertificateTraining"+generateMixed(9);
            }else {
                window.location.href="/f/campusinfo/ApplyForCertificateTraining?id="+id+generateMixed(9);
            }
        })
    })
</script>
</body>
</html>
